package com.test.api.feign;

import com.test.api.People;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-demo",path = "/user")
public interface UserClient {
    @GetMapping("/{id}")
    People getUser(@PathVariable("id") Long id);
}
